package com.deyuanyun.pic.pbf.service.impl;

import com.deyuanyun.pic.pbf.domain.RepairPipeWeld;
import com.deyuanyun.pic.pbf.domain.RepairPipeWeldExample;
import com.deyuanyun.pic.pbf.mapper.RepairPipeWeldMapper;
import com.deyuanyun.pic.pbf.service.RepairPipeWeldService;
import java.util.List;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class RepairPipeWeldServiceImpl implements RepairPipeWeldService {
    @Autowired
    private RepairPipeWeldMapper repairPipeWeldMapper;

    private static final Logger logger = LoggerFactory.getLogger(RepairPipeWeldServiceImpl.class);

    public RepairPipeWeld selectByPrimaryKey(String id) {
        return this.repairPipeWeldMapper.selectByPrimaryKey(id);
    }

    public int deleteByPrimaryKey(String id) {
        return this.repairPipeWeldMapper.deleteByPrimaryKey(id);
    }

    public int updateByPrimaryKeySelective(RepairPipeWeld record) {
        return this.repairPipeWeldMapper.updateByPrimaryKeySelective(record);
    }

    public int updateByPrimaryKey(RepairPipeWeld record) {
        return this.repairPipeWeldMapper.updateByPrimaryKey(record);
    }

    public int insert(RepairPipeWeld record) {
        return this.repairPipeWeldMapper.insert(record);
    }

    @Override
    public int insertSelective(RepairPipeWeld repairPipeWeld) {
        return this.repairPipeWeldMapper.insertSelective(repairPipeWeld);
    }

    @Override
    public List<RepairPipeWeld> queryRepairPipeWeldList(String repairPipeWeldingId) {
        RepairPipeWeldExample repairPipeWeldExample = new RepairPipeWeldExample();
        repairPipeWeldExample.createCriteria().andRepairPipeWeldingIdEqualTo(repairPipeWeldingId).andDeletedEqualTo((short)0);
        return this.repairPipeWeldMapper.selectByExample(repairPipeWeldExample);
    }

}